import { get, post, put, del } from '@/utils/http/request'
import { mockGet } from '@/utils/http/request-mock'
import { R, P } from '@/utils/http/type'

export const login = () => {
  return mockGet('/user/login')
}

export const shopLogin = (storeId: string | number) => {
  return post<
    R<{
      accessToken: string
    }>
  >(`http://43.139.98.171:3003/seller/store/auth/${storeId}`)
}
